package com.cloud.lan.pub.api.dto.weather;

import java.io.Serializable;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * *********************************************************
 *
 * @Author <a href="mailto:xyqierkang@gmail.com">ErKang Qi</a>
 * @Date Created in 2020/8/13 14:11
 * @Title WeatherDto.java
 * <p>Description: [ 高级天气 返回实体 ] </p>
 * <p>Blog: https://www.qekang.com</p>
 * <p>Inc:  </p>
 * <p>Copyright:    </p>
 * <p>Department: Product development </p>
 * *********************************************************
 */
@Data
public class WeatherDto implements Serializable {


    /**
     * code : 0
     * data : {"city":{"cityId":284826,"counname":"中国","ianatimezone":"Asia/Shanghai","name":"黄浦区","pname":"上海市","secondaryname":"上海市","timezone":"8"},"condition":{"condition":"晴","conditionId":"1","humidity":"42","icon":"0","pressure":"1011","realFeel":"36","sunRise":"2020-08-13 05:19:00","sunSet":"2020-08-13 18:39:00","temp":"37","tips":"酷热难耐，感觉要被晒化了。","updatetime":"2020-08-13 14:10:08","uvi":"10","vis":"30000","windDegrees":"270","windDir":"西风","windLevel":"2","windSpeed":"1.8"}}
     * msg : success
     * rc : {"c":0,"p":"success"}
     */

    private int code;
    private DataBean data;
    private String msg;
    private RcBean rc;

    @Getter
    @Setter
    public static class DataBean {
        /**
         * city : {"cityId":284826,"counname":"中国","ianatimezone":"Asia/Shanghai","name":"黄浦区","pname":"上海市","secondaryname":"上海市","timezone":"8"}
         * condition : {"condition":"晴","conditionId":"1","humidity":"42","icon":"0","pressure":"1011","realFeel":"36","sunRise":"2020-08-13 05:19:00","sunSet":"2020-08-13 18:39:00","temp":"37","tips":"酷热难耐，感觉要被晒化了。","updatetime":"2020-08-13 14:10:08","uvi":"10","vis":"30000","windDegrees":"270","windDir":"西风","windLevel":"2","windSpeed":"1.8"}
         */

        private CityBean city;
        private ConditionBean condition;

        @Getter
        @Setter
        public static class CityBean {
            /**
             * cityId : 284826
             * counname : 中国
             * ianatimezone : Asia/Shanghai
             * name : 黄浦区
             * pname : 上海市
             * secondaryname : 上海市
             * timezone : 8
             */

            private int cityId;
            private String counname;
            private String ianatimezone;
            private String name;
            private String pname;
            private String secondaryname;
            private String timezone;

        }

        @Getter
        @Setter
        public static class ConditionBean {
            /**
             * condition : 晴
             * conditionId : 1
             * humidity : 42
             * icon : 0
             * pressure : 1011
             * realFeel : 36
             * sunRise : 2020-08-13 05:19:00
             * sunSet : 2020-08-13 18:39:00
             * temp : 37
             * tips : 酷热难耐，感觉要被晒化了。
             * updatetime : 2020-08-13 14:10:08
             * uvi : 10
             * vis : 30000
             * windDegrees : 270
             * windDir : 西风
             * windLevel : 2
             * windSpeed : 1.8
             */

            private String condition;
            private String conditionId;
            private String humidity;
            private String icon;
            private String pressure;
            private String realFeel;
            private String sunRise;
            private String sunSet;
            private String temp;
            private String tips;
            private String updatetime;
            private String uvi;
            private String vis;
            private String windDegrees;
            private String windDir;
            private String windLevel;
            private String windSpeed;

        }
    }

    @Getter
    @Setter
    public static class RcBean {
        /**
         * c : 0
         * p : success
         */

        private int c;
        private String p;

    }
}


